package common.post.service;

import java.util.List;

import common.customer.bean.Customer;
import common.post.bean.SInfo;
import common.system.bean.Area;
import common.system.bean.City;

public interface SInfoService {
	public SInfo getSInfoById(int id);
	public int addNewGirl(City city,
							  Area area,
							  Customer customer,
							  String desc,
							  String images,
							  String title,
							  String phone,
							  String qq);
	public boolean addSInfo(SInfo sinfo);
	public boolean updateSInfo(SInfo sinfo);
	/**
	 * 获得type=“***”的sinfo列表信息
	 * @param cityId
	 * @param areaId
	 * @param type
	 * @param page
	 * @param pageSize
	 * @param days
	 * @param orderBy
	 * @param jinghua
	 * @param tuijian
	 * @param vip
	 * @return
	 */
	public List<SInfo> getSInfos(int cityId,
								int areaId,
								String type,
								int page,
								int pageSize,
								int days,
								String orderBy,
								String jinghua,
								String tuijian,boolean vip);
	/**
	 * 统计type=“***”的sinfo数量 
	 * @param cityId
	 * @param areaId
	 * @param type
	 * @param days
	 * @param jinghua
	 * @param tuijian
	 * @param vip
	 * @return
	 */
	public long countSInfo(int cityId,
								int areaId,
								String type,
								int days,
								String jinghua,
								String tuijian,
								boolean vip);
	/**
	 * 获得type!=“***”的sinfo列表信息
	 * @param cityId
	 * @param areaId
	 * @param type
	 * @param page
	 * @param pageSize
	 * @param days
	 * @param orderBy
	 * @param jinghua
	 * @param tuijian
	 * @param vip
	 * @return
	 */
	public List<SInfo> getSInfosExcludeType(int cityId,
								int areaId,
								String type,
								int page,
								int pageSize,
								int days,
								String orderBy,
								String jinghua,
								String tuijian,boolean vip);
	/**
	 * 统计type!=“***”的sinfo数量 
	 * @param cityId
	 * @param areaId
	 * @param type
	 * @param days
	 * @param jinghua
	 * @param tuijian
	 * @param vip
	 * @return
	 */
	public long countSInfoExcludeType(int cityId,
								int areaId,
								String type,
								int days,
								String jinghua,
								String tuijian,
								boolean vip);
}
